package com.css.common.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

@Getter
@AllArgsConstructor
public enum DmGyQyrzjbgshztEnum {

    QYRZJBGSHZT_BCDTJ("01", "已经保存待提交"),

    QYRZLB_RWSHCLZ("02", "入网审核处理中"),

    QYRZLB_RWKHZ("03", "入网开户中"),

    QYRZLB_SHTG("04", "审核通过"),

    QYRZLB_SHWTG("05", "审核未通过"),

    QYRZLB_BGJBCDTJ("06", "变更已保存待提交"),

    QYRZLB_BGSHCLZ("07", "变更审核处理中");


    private final String dm;

    private final String mc;

    public static String getMc(String dm) {
        DmGyQyrzjbgshztEnum res = Arrays.stream(values())
                .filter(x -> x.getDm().equals(dm))
                .findFirst().orElse(null);
        return res == null ? null : res.getMc();
    }
}
